package com.ioftv.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 质检统计Excel导入导出DTO
 */
@Data
public class QcStatisticsExcelDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 质检员ID
     */
    @ExcelProperty(value = "质检员ID", index = 0)
    private Long inspectorId;

    /**
     * 质检员姓名
     */
    @ExcelProperty(value = "质检员姓名", index = 1)
    private String inspectorName;

    /**
     * 已质检数
     */
    @ExcelProperty(value = "已质检数", index = 2)
    private Integer checkedCount;

    /**
     * 总质检数
     */
    @ExcelProperty(value = "总质检数", index = 3)
    private Integer totalCount;

    /**
     * 质检合格率
     */
    @ExcelProperty(value = "质检合格率", index = 4)
    private BigDecimal passRate;

    /**
     * 统计日期
     */
    @ExcelProperty(value = "统计日期(格式:2025-01-15)", index = 5)
    @DateTimeFormat("yyyy-MM-dd")
    private String statDate;
}